white-space-x
List of ECMAScript5 white space characters.
Version: 2.0.3
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750
white-space-x~list
: Array.<Object>
An array of the ES5 whitespace char codes, string, and their descriptions.
Kind: inner property of white-space-x
Example
var whiteSpace = require('white-space-x');
whiteSpaces.list.foreach(function (item) {
console.log(lib.description, item.code, item.string);
});
white-space-x~string
: string
A string of the ES5 whitespace characters.
Kind: inner property of white-space-x
Example
var whiteSpace = require('white-space-x');
var characters = [
'\u0009',
'\u000a',
'\u000b',
'\u000c',
'\u000d',
'\u0020',
'\u00a0',
'\u1680',
'\u180e',
'\u2000',
'\u2001',
'\u2002',
'\u2003',
'\u2004',
'\u2005',
'\u2006',
'\u2007',
'\u2008',
'\u2009',
'\u200a',
'\u2028',
'\u2029',
'\u202f',
'\u205f',
'\u3000',
'\ufeff'
];
var ws = characters.join('');
var re1 = new RegExp('^[' + whiteSpace.string + ']+$)');
re1.test(ws);